module.exports = app => {
    const { router, controller } = app;

    router.post('/api/router/addRouterAuth', controller.routerAuth.addRouterAuth);
    router.put('/api/router/editRouterAuth/:routerId', controller.routerAuth.editRouterAuth);
    router.get('/api/router/getRouterAuth', controller.routerAuth.getRouterAuth);
    router.del('/api/router/delRouterAuth/:routerId', controller.routerAuth.delRouterAuth);

    router.get('/api/router/getBindRoleRouter', controller.routerAuth.getBindRoleRouter);
    router.get('/api/router/getUnbindRoleRouter', controller.routerAuth.getUnbindRoleRouter);

    router.post('/api/router/bindRoleRouter', controller.routerAuth.bindRoleRouter);
    router.del('/api/router/unbindRoleRouter/:authId', controller.routerAuth.unbindRoleRouter);

    router.get('/api/router/getAllAuthRouter', controller.routerAuth.getAllAuthRouter);
    router.get('/api/router/getRoleAuthRouter/:roleId', controller.routerAuth.getRoleAuthRouter);
};